package com.zkt.practice.server.mapper;

import com.zkt.practice.server.entity.po.LabelCountPO;
import com.zkt.practice.server.entity.po.SubjectMappingPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 赵开泰
 * @program jc-club
 * @date 2025/3/23
 * @description 题目分类关系mapper层
 **/

@Mapper
public interface SubjectMappingMapper {
	
	/**
	 * 统计标签
	 */
	List<LabelCountPO> getLabelSubjectCount(@Param("categoryId") Long categoryId, @Param("subjectTypeList") List<Integer> subjectTypeList);
	
	/**
	 * 根据分类获取标签
	 */
	List<SubjectMappingPO> getLabelIdsBySubjectId(Long subjectId);
	
}
